home *** CD-ROM | disk | FTP | other *** search
/ Final Destination 2 Press Kit / Final Destination 2 Press Kit.iso / pc / intro.dxr / 00002_loading code.ls < prev    next >
Encoding:
Text File  |  2003-01-02  |  446 b   |  25 lines

  1. property pStartTime
  2. global netID, sessionID
  3.  
  4. on beginSprite me
  5.   pStartTime = the timer
  6. end
  7.  
  8. on exitFrame me
  9.   if (the timer > (pStartTime + 720)) or (sessionID <> VOID) then
  10.     nothing()
  11.   else
  12.     case netDone(netID) of
  13.       0:
  14.         go(the frame)
  15.       1:
  16.         if netError(netID) <> "OK" then
  17.           sessionID = VOID
  18.         else
  19.           sessionID = netTextResult(netID)
  20.           census()
  21.         end if
  22.     end case
  23.   end if
  24. end
  25.